#ifndef SERIAL_OPT_H
#define SERIAL_OPT_H

#include <QMainWindow>
#include <QtSerialPort/QSerialPort>
#include <QtSerialPort/QSerialPortInfo>
#include <QString>
#include <QByteArray>
#include <QObject>
#include <QMetaType>
#include <QWidget>



class serial_opt : public QWidget
{

private:
    QString         m_name;
    int             m_baundrate;
    QSerialPort     *port;
    QString         receive_data;

private slots:
    void Read_Data();

public:
    serial_opt(char *name,int rate);
    int show();
    bool open();

};


#endif // SERIAL_OPT_H
